package com.buddy.learn.javasource._class._extend;

/**
 * @author Buddy
 * @date 2021/6/2
 */
public class Parent {

    static {
        System.out.println("A1");
    }

    {System.out.println("B1");}

    public Parent() {
        System.out.println("C1");
    }

    @Override
    public String toString() {
        System.out.println("D1");
        return "Parent{}";
    }
}
